package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 余额对象 t_app_balance
 * 
 * @author ruoyi
 * @date 2025-04-23
 */
public class TAppBalance extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 日期 */
    @Excel(name = "日期[Date]\t")
    private String date;

    /** 当日期初余额 */
    @Excel(name = "当日期初余额[Opening Bal. On Transaction Date]\t")
    private String openingBal;

    /** 当日期末余额 */
    @Excel(name = "当日期末余额[Closing Bal. On Transaction Date]\t")
    private String closingBal;

    /** 当日借方发生额 */
    @Excel(name = "当日借方发生额[Debit Amount On Transaction Date]\t")
    private String debitAmount;

    /** 当日贷方发生额 */
    @Excel(name = "当日贷方发生额[Credit Amount On Transaction Date]\t")
    private String creditAmount;

    /** 用户id */
    @Excel(name = "用户唯一标识")
    private Long userId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setDate(String date) 
    {
        this.date = date;
    }

    public String getDate() 
    {
        return date;
    }

    public void setOpeningBal(String openingBal) 
    {
        this.openingBal = openingBal;
    }

    public String getOpeningBal() 
    {
        return openingBal;
    }

    public void setClosingBal(String closingBal) 
    {
        this.closingBal = closingBal;
    }

    public String getClosingBal() 
    {
        return closingBal;
    }

    public void setDebitAmount(String debitAmount) 
    {
        this.debitAmount = debitAmount;
    }

    public String getDebitAmount() 
    {
        return debitAmount;
    }

    public void setCreditAmount(String creditAmount) 
    {
        this.creditAmount = creditAmount;
    }

    public String getCreditAmount() 
    {
        return creditAmount;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("date", getDate())
            .append("openingBal", getOpeningBal())
            .append("closingBal", getClosingBal())
            .append("debitAmount", getDebitAmount())
            .append("creditAmount", getCreditAmount())
            .append("createTime", getCreateTime())
            .append("userId", getUserId())
            .toString();
    }
}
